This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:techstuff:libvirt [2012/09/22 12:49] – nathan | public:techstuff:libvirt [2020/04/25 13:05] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Creating a VM ===== | ===== Creating a VM ===== | ||
- | ==== Basic install | + | ==== Creating an KVM VM ==== |
virt-install | virt-install | ||
Line 13: | Line 13: | ||
--disk=/ | --disk=/ | ||
- | ==== Existing image ==== | + | ==== Creating an LXC VM ==== |
+ | |||
+ | * Capped resources at 512mb of ram and 2 cpus | ||
+ | |||
+ | cd /img | ||
+ | mkdir < | ||
+ | sudo debootstrap wheezy < | ||
+ | sudo virt-install --connect lxc:/// --name cubert --ram 512 --vcpu 2 --filesystem / | ||
+ | |||
+ | virt-install \ | ||
+ | --connect lxc:/// | ||
+ | --name httpd_guest | ||
+ | --ram 512 | ||
+ | --vcpus 2 | ||
+ | ==== Existing | ||
virt-install | virt-install | ||
Line 34: | Line 48: | ||
< | < | ||
- | * If you want a specific name you'll need to create the LV manually first. | + | * If you want a specific name you'll need to create the volume |
- | < | + | < |
- | * And then use this line to specify it. | + | And then use this line to specify it. |
- | < | + | < |
===== Open Serial Console to VM ===== | ===== Open Serial Console to VM ===== |