qemunet:misc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| qemunet:misc [2019/05/27 13:49] – orel | qemunet:misc [2024/03/18 15:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ==== Convert QEMU image for VirtualBox ==== | ==== Convert QEMU image for VirtualBox ==== | ||
| + | Conversion avec l' | ||
| - | | + | |
| - | | + | |
| + | Conversion avec l' | ||
| + | qemu-img convert debian10x.img -O raw debian10x.raw | ||
| + | qemu-img convert -O qcow debian10x.img debian10x.qcow | ||
| + | qemu-img convert -O qcow2 -o compat=0.10 debian10x.img debian10x.qcow2 # QCOW Image V2 | ||
| + | qemu-img convert -O qcow2 debian10x.img debian10x.qcow3 # QCOW Image V3 (default) !!! | ||
| + | |||
| + | QCOW v1 & v2 sont supportés... QCOW Image v3 supporté à partir de VirtualBox 6.0.8 (?). | ||
| ==== Nested Virtualization in QEMU/KVM ==== | ==== Nested Virtualization in QEMU/KVM ==== | ||
| Line 46: | Line 54: | ||
| $ qemu-system-x86_64 -vga qxl -spice port=5900, | $ qemu-system-x86_64 -vga qxl -spice port=5900, | ||
| + | Se connecter avec un viewer à la VM avec: | ||
| - | More in details, with copy & paste support: | + | $ sudo apt-get install virt-viewer |
| + | $ remote-viewer spice:// | ||
| + | |||
| + | |||
| + | In order to add copy & paste support: | ||
| | | ||
| - | $ qemu-system-x86_64 -enable-kvm -hda kali.img | + | $ SPICEOPT=" |
| + | $ SPICEMORE=" | ||
| + | $ qemu-system-x86_64 -enable-kvm -hda kali.img | ||
| + | Installez spice-vdagent sur le guest (linux) et vérifiez que les services space-vdagentd et spice-vdagent sont bien démarrés... | ||
| - | Installer spice-vdagent sur le guest (linux). | ||
| $ sudo apt-get install spice-vdagent | $ sudo apt-get install spice-vdagent | ||
| + | $ sudo systemctl enable spice-vdagentd | ||
| + | $ sudo systemctl enable spice-vdagent | ||
| + | $ sudo systemctl daemon-reload | ||
| + | $ sudo rm -f / | ||
| + | $ sudo reboot | ||
| Pour windows, il faut installer : https:// | Pour windows, il faut installer : https:// | ||
| - | Demarrer space-vdagentd au boot et spicevdagent apres le login X. | + | Bon, l' |
| - | Se connecter a la VM avec: | + | $ SPICEOPT1=" |
| - | + | $ SPICEOPT2=" | |
| - | $ remote-viewer | + | $ SPICEOPT3=" |
| + | (Eventuellement, | ||
| __More:__ https:// | __More:__ https:// | ||
| + | |||
| + | |||
| + | ==== Socket display ==== | ||
| + | |||
| + | # elif [ " | ||
| + | # # bug: with this option, any ctrl-c (SIGINT) in VM will kill all qemu session! | ||
| + | # # solution: use socat in raw mode with escape option! | ||
| + | # | ||
| + | # # redirect both qemu monitor & console in two Unix sockets, that can be connected with socat | ||
| + | # # $ socat stdin, | ||
| + | # | ||
| + | # # CMD=" | ||
| + | # | ||
| + | # echo " | ||
| + | # bash -c " | ||
| + | |||
| + | # if [ " | ||
| + | # echo "=> To access the QEMU console of each VM, please use the command:" | ||
| + | # echo " | ||
| + | # fi | ||
| + | |||
qemunet/misc.1558964946.txt.gz · Last modified: 2024/03/18 15:05 (external edit)
