Provisioning a guest with multiple virtual disks
You can provision a guest with multiple virtual disks specifying different images and different boot orders.
disk 1
and disk 2
. The guest parameters are: - Unique name of the guest:
a-guest
. - Number of CPUs:
2
. - Amount of RAM:
2048 MB
. - Location of
image1
fordisk 1
:/var/lib/libvirt/images/image1.qcow2
- Location of
image2
fordisk 2
:/var/lib/libvirt/images/image2.qcow2
To install and configure a guest, perform the following steps in configuration mode.
Step | Command |
---|---|
Create a guest called a-guest . |
|
Assign the UUID to the guest. |
|
Set the number of CPUs as 2 . |
|
Set the RAM as 2048 MB . |
|
Set a virtual disk for the guest as disk 1 . |
|
Set the path of the image for disk 1 as /var/lib/libvirt/images/image1.qcow2 . |
|
Set the boot order for disk 1 as 1 . |
|
Set another virtual disk for the guest as disk 2 . |
|
Set the path of the image for disk 2 as /var/lib/libvirt/images/image2.qcow2 . |
|
Set the boot order for disk 2 as 3 . |
|
Set the display password as vyatta123 . |
|
Set the display port as 5911 . |
|
Set the remote connection display access as vnc . |
|
Commit the changes. |
|
Display the result. |
|