diff options
author | Jack Morgan <jack.morgan@intel.com> | 2017-09-26 00:10:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-26 00:10:21 +0000 |
commit | f33a03d8f07c2b239322e33a271ef2f1d665313a (patch) | |
tree | 7664324153de2ef41fa9cc9f07a26ce6aff6b38d /tools/pharos-validator/docs/howto/virt-manager/HOWTO | |
parent | 25b2adb887b5e1cab767023476dd0ec2f02b4b59 (diff) | |
parent | aeb2791f4d3a5e23090e56c330436205a61629d7 (diff) |
Merge "Remove 'tools' Directory"
Diffstat (limited to 'tools/pharos-validator/docs/howto/virt-manager/HOWTO')
-rw-r--r-- | tools/pharos-validator/docs/howto/virt-manager/HOWTO | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tools/pharos-validator/docs/howto/virt-manager/HOWTO b/tools/pharos-validator/docs/howto/virt-manager/HOWTO deleted file mode 100644 index bed105a7..00000000 --- a/tools/pharos-validator/docs/howto/virt-manager/HOWTO +++ /dev/null @@ -1,50 +0,0 @@ -Syntax guide: - 1. [[ denotes commands / code ]] - 2. <> denotes bullet, sub-bullets will have an extra > appended depending on their sub-level - 3. ${denotes variables the the user is expected to fill out depending on their specific needs} - -Tutorials: - 1. Configure host machine for virtualization - 2. Make a Virtual Machine with storage - 3. Make a blank virtual machine awaiting PXE - 4. Install and save default VM image - 5. Configure Networking with VMs -; - -1 -- - <> Install Host OS (CentOS7) - <> Use package manager (yum) to install qemu, kvm, virt-install, and virt-manager) - <> Edit kernel commandline option with "kvm-intel.nested=1" and or edit /etc/modprobe.d/kvm-intel.conf to contain "options kvm-intel nested=1". This will allow for nested performance to not be absolutely terrible and slow. - <>> A command to do this is [[ echo "options kvm-intel nested=1" | sudo tee /etc/modprobe.d/kvm-intel.conf ]] - <> - -2 -- - <> Creating new disks uses the command [[ qemu-img create -f raw ${image-name}.img ${size} ]], where image-name is the name of your vm's disk, and size is the size of the disk you want (e.g. 2G will be a 2 Gigabyte disk, 512M will be 512 Megabytes) - <> Download some installation media (e.g. CentOS7-DVD.iso) - <> Using those disks utilizing the virt-install tool [[ virt-install -n name_of_vm --graphics none --vcpus=2 -l /path/to/installation.iso --ram=512 --disk path=/path/to/disk.img,cache=none --extra-args="console=ttyS0" ]] don't use --extra-args="console=ttyS0" if you would rather have the VM use the X-display instead of a serial console. - <> - -3 -- - <> TODO - -4 -- - <> Either script the install or make a template of the VM - -5 -- - <> [[ virsh attach-interface --domain ${name} --type network --source default --model virtio --mac ${mac-address} --config --live ]] Where name is the name of the virtual machine that virsh knows of, and ${mac-address} is any randomly generated MAC address. - <> Each node will require at least 3 variants of the above command to have 3 more NICs in addition to the one a virtual machine has by default as the pharos specification requires. - <> You can verify the addition of the above NICs with [[ virsh domiflist ${name} ]] where ${name} is the virtual machine you would like to see the NICs of. - <> These NICs may be detached with the command [[ virsh detach-interface --domain ${name} --type network --mac ${mac-address} --config ]] where ${name} is the vm you're targeting and ${mac-address} is the NIC's specific MAC address. - -0 6 -- - <> Add a virtual interface to a bridge by editing the configuration file that qemu generates. - <> Change the line from this: - <interface type='network'> - <mac address='00:11:22:33:44:55'/> - <source network='default'/> - </interface> - <> To this: - <interface type='bridge'> - <mac address='00:11:22:33:44:55'/> - <source bridge='br0'/> - </interface> |