This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
kvm:nested [2016/04/03 18:04] Toni Corvera |
kvm:nested [2016/04/03 23:40] Toni Corvera Added memory to kvm command |
||
---|---|---|---|
Line 5: | Line 5: | ||
Command-line example: | Command-line example: | ||
- | # kvm -hda /dev/vg/lvkvm -cdrom osinstall.iso -boot d \ | + | # kvm -hda /dev/vg/lvkvm -cdrom osinstall.iso -boot d -m 1G \ |
-vnc :2 -netdev tap,id=net0,ifname=tap0 -device virtio-net,netdev=net0,mac=52:54:00:12:34:56 -cpu host | -vnc :2 -netdev tap,id=net0,ifname=tap0 -device virtio-net,netdev=net0,mac=52:54:00:12:34:56 -cpu host | ||
Line 12: | Line 12: | ||
* ''-hda /dev/vg/lvkvm'' → Use an LVM Logical Volume as the first hard disk | * ''-hda /dev/vg/lvkvm'' → Use an LVM Logical Volume as the first hard disk | ||
* ''-cdrom osinstall.iso -boot d'' → Connect this ISO to the guest's DVD drive and boot from it | * ''-cdrom osinstall.iso -boot d'' → Connect this ISO to the guest's DVD drive and boot from it | ||
+ | * ''-m 1G'' → Provide the guest 1 GB of RAM | ||
* ''-vnc :2'' → Run the display as a VNC server | * ''-vnc :2'' → Run the display as a VNC server | ||
* ''-netdev tap,id=net0,ifname=tap0 -device virtio-net,netdev=net0,mac=52:54:00:12:34:56'' → Use TAP networking with virtio drivers (combined with a host bridge it integrates in the LAN), see [[linux:bonding-bridge]] | * ''-netdev tap,id=net0,ifname=tap0 -device virtio-net,netdev=net0,mac=52:54:00:12:34:56'' → Use TAP networking with virtio drivers (combined with a host bridge it integrates in the LAN), see [[linux:bonding-bridge]] |