![]() ![]() Ssh -p 22256 'sudo cp -vi nf /etc/init/ rm -v nf sudo shutdown -h now'Įnabling passwordless sudo: sudo VISUAL =vi visudo Scp -P 22255 /kvm/vms/nf -P 22256 /kvm/vms/nf -p 22255 'sudo cp -vi nf /etc/init/ rm -v nf sudo shutdown -h now' ssh/authorized_keys ~buildbot/.ssh/ sudo chown -vR buildbot:buildbot ~buildbot/.ssh sudo chmod -vR go-rwx ~buildbot/.ssh' ssh sudo adduser -disabled-password buildbot sudo addgroup buildbot sudo sudo mkdir ~buildbot/.ssh sudo cp -vi. ssh/authorized_keys ~buildbot/.ssh/ sudo chown -vR buildbot:buildbot ~buildbot/.ssh sudo chmod -vR go-rwx ~buildbot/.ssh' echo $'Buildbot\n\n\n\n\ny' | ssh -p 22256 localhost 'chmod -R go-rwx. Scp -P 22256 /kvm/vms/authorized_keys localhost.ssh/Įcho $'Buildbot\n\n\n\n\ny' | ssh -p 22255 localhost 'chmod -R go-rwx. Scp -P 22255 /kvm/vms/authorized_keys localhost.ssh/ # edit /boot/grub/menu.lst and visudo, see below Kvm -m 1024 -hda /kvm/vms/vm-precise-i386-serial.qcow2 -cdrom /kvm/iso/ubuntu/ -redir tcp:22256::22 -boot c -smp 2 -cpu qemu64 -net nic,model =virtio -net user -nographic If you have the memory you can do the following simultaneously: kvm -m 1024 -hda /kvm/vms/vm-precise-amd64-serial.qcow2 -cdrom /kvm/iso/ubuntu/ -redir tcp:22255::22 -boot c -smp 2 -cpu qemu64 -net nic,model =virtio -net user -nographic Now that the VM is installed, it's time to configure it. Choose software to install: OpenSSH server.When partitioning disks, choose "Guided - use entire disk" (we do not want LVM).Install, picking default options mostly, with the following notes: Note: When you activate the install, vncviewer may disconnect with a complaint about the rect being too large. Once running you can connect to the VNC server from your local host with: vncviewer -via $ with the host the vm is running on. Kvm -m 1024 -hda /kvm/vms/vm-precise-i386-serial.qcow2 -cdrom /kvm/iso/ubuntu/ -redir tcp:22256::22 -boot d -smp 2 -cpu qemu32,-nx -net nic,model =virtio -net user The following install steps: kvm -m 1024 -hda /kvm/vms/vm-precise-amd64-serial.qcow2 -cdrom /kvm/iso/ubuntu/ -redir tcp:22255::22 -boot d -smp 2 -cpu qemu64 -net nic,model =virtio -net user Start each VM booting from the server install iso one at a time and perform Qemu-img create -f qcow2 /kvm/vms/vm-precise-i386-serial.qcow2 8G Unable to boot - please use a kernel appropriate for your CPU.ĥ) I did find out that the "SVM" CPU bit corresponds to "AMD Secure Virtual Machine", which confused me since my CPU is Haswell.Base install qemu-img create -f qcow2 /kvm/vms/vm-precise-amd64-serial.qcow2 8G But that fails with a different error This kernel requires an x86-64 CPU, but only detected an i686 CPU. It is enabled, lscpu shows Virtualization: VT-xĤ) use qemu-system-i386 instead of qemu-system-x86_64. I have searched a lot and got a number of solutions and possible problems but none worked.ġ) Have tried with Ubuntu 20 also, but same error. Qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm I am trying to install ubuntu in one of the qcow2 images I have created, using the below command sudo qemu-system-x86_64 -enable-kvm -nographic -smp 8 -m 8G -cpu qemu64 -cdrom -boot d 2įirst it spits out a warning, and then just hangs qemu-system-x86_64: warning: host doesn't support requested feature: CPUID.80000001H:ECX.svm
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |