summaryrefslogtreecommitdiffstats
path: root/tools/pharos-validator/docs/howto/virt-manager/HOWTO
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2017-09-22 11:48:38 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2017-09-22 11:48:38 -0700
commitaeb2791f4d3a5e23090e56c330436205a61629d7 (patch)
tree7b4918aba2421f2dc8cdac72f134e74acec92bee /tools/pharos-validator/docs/howto/virt-manager/HOWTO
parent783a439ec2bd23ad969ffe7a3c6b7277f7a565c7 (diff)
Remove 'tools' Directory
All tools (and history) have been moved to the pharos-tools repository: https://git.opnfv.org/pharos-tools/ Change-Id: I84fa9b6ebd9b27f42d41f2722eb1221ec39a8c94 Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Diffstat (limited to 'tools/pharos-validator/docs/howto/virt-manager/HOWTO')
-rw-r--r--tools/pharos-validator/docs/howto/virt-manager/HOWTO50
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>