1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
modprobe kvm-intel|kvm-amd
* Creating disk image
qemu-img create -f qcow2 vdisk.qcow2 32G
* Installation
kvm -hda vdisk.qcow2 -cdrom /path/to/boot-media.iso -boot d -m 1024
* Booting
kvm -hda vdisk.qcow2 -m 1024
* VDE Network (default net, configured in /etc/conf.d/vde)
kvm -hda solaris.qcow2 -m 1024 -net nic,model=rtl8139 -net vde,vlan=0,sock=/var/run/vde.ctl
* Problems
vde problem, after daemon restart the qemu should be restarted
* More Options
-nographic -serial null -monitor null
-nographic
-daemonize
-localtime
-soundhw es1370 -no-acpi -snapshot -localtime -boot c -usb -usbdevice tablet -net nic,vlan=0,macaddr=00:00:10:52:37:48 -net tap,vlan=0,ifname=tap0,script=no
Background Execution
====================
kvm -hda solaris.qcow2 -m 1024 -net nic,model=rtl8139 -net vde,sock=/var/run/e.ctl -nographic -monitor null -serial none
screen accessible later
screen -dmS MyQemu qemu -hda /dev/hda -snapshot -m 512
screen -r MyQemu
Forwarding USB
==============
* Start KVM with USB enabled: kvm -usb
* Switch to console: Ctrl+Alt+2
* Add devices: usb_add host:####:####
The numers can be acquired using lsusb
Multi mode usb_add host:1234:*
* Remove device: usb_dev <dev_id>
* Connected: info usb
- Running user should have permissions to access usb
Problems
=========
* Lately gtk display of qemu is broklen. Add '-display sdl' option to run
|