Manage KVM through Cockpit
-
@ccwtech said in Manage KVM through Cockpit:
Sorry if this is a dumb question, I'm very new at Linux in general.
When adding a VM, where do you tell it to store the VM at?
I don't think you can through Cockpit at this point. You need to either use
virsh
or Virt-Manager. -
@ccwtech said in Manage KVM through Cockpit:
Sorry if this is a dumb question, I'm very new at Linux in general.
When adding a VM, where do you tell it to store the VM at?
I make another partition and mount it to /data
-
Ok, I have the file system setup with plenty of space in /var
Trying to install using Cockpit:
ERROR internal error: process exited while connecting to monitor: 2018-06-17T23:26:23.767121Z qemu-system-x86_64: -drive file=/run/media/root/DATA/en_windows_server_2012_r2_x64_dvd_2707946.iso,format=raw,if=none,id=drive-ide0-0-1,readonly=on: Could not open '/run/media/root/DATA/en_windows_server_2012_r2_x64_dvd_2707946.iso': Permission denied Domain installation does not appear to have been successful. If it was, you can restart your domain by running: virsh --connect qemu:///system start Server-2012R2 otherwise, please restart your installation.
-
@ccwtech what account are you logged in as?
-
-
@Obsolesce The file is on a USB Drive if that matters.
-
@ccwtech said in Manage KVM through Cockpit:
@Obsolesce The file is on a USB Drive if that matters.
The ISO might need to have the correct SELinux context. Try copying it to your /var/lib/libvirt/images directory and see if it lets you install that way.
-
@stacksofplates said in Manage KVM through Cockpit:
/var/lib/libvirt/images
That's the trick, thanks!
-
Now the next issue... Appears as if Server 2012 R2 needs a driver to see the filesystem...
-
@ccwtech said in Manage KVM through Cockpit:
Now the next issue... Appears as if Server 2012 R2 needs a driver to see the filesystem...
I'm guessing you need to set the qcow2 disk to IDE instead of virtio. Then in the VM install the virtio drivers and you can change it back.
-
I've never installed 2012 R2 in KVM yet. But Windows 10 automatically sets up as IDE when done from
virt-manager
-
I think I have it figured out but don't know how to actually implement it. I'm running Fedora Server 28 Headless - so I have the ISO file for the drivers in /usr/share/virtio-win
I think I just need to mount the ISO for the VM but not sure how to do that.
-
@ccwtech said in Manage KVM through Cockpit:
I think I have it figured out but don't know how to actually implement it. I'm running Fedora Server 28 Headless - so I have the ISO file for the drivers in /usr/share/virtio-win
I think I just need to mount the ISO for the VM but not sure how to do that.
I run Fedora on my desktop as well as my KVM server. so I just use Virtual Machine Manager most of the time.
-
@jaredbusch Any idea how to do it in command line?
-
@ccwtech said in Manage KVM through Cockpit:
I think I have it figured out but don't know how to actually implement it. I'm running Fedora Server 28 Headless - so I have the ISO file for the drivers in /usr/share/virtio-win
I think I just need to mount the ISO for the VM but not sure how to do that.
Easiest for a first timer is virt-manager. Just click the IDE CDROM device and then click connect. You can pick your ISO from the browser.
-
@stacksofplates said in Manage KVM through Cockpit:
@ccwtech said in Manage KVM through Cockpit:
I think I have it figured out but don't know how to actually implement it. I'm running Fedora Server 28 Headless - so I have the ISO file for the drivers in /usr/share/virtio-win
I think I just need to mount the ISO for the VM but not sure how to do that.
Easiest for a first timer is virt-manager. Just click the IDE CDROM device and then click connect. You can pick your ISO from the browser.
Can you use virt-manager on a headless install?
-
@ccwtech said in Manage KVM through Cockpit:
@stacksofplates said in Manage KVM through Cockpit:
@ccwtech said in Manage KVM through Cockpit:
I think I have it figured out but don't know how to actually implement it. I'm running Fedora Server 28 Headless - so I have the ISO file for the drivers in /usr/share/virtio-win
I think I just need to mount the ISO for the VM but not sure how to do that.
Easiest for a first timer is virt-manager. Just click the IDE CDROM device and then click connect. You can pick your ISO from the browser.
Can you use virt-manager on a headless install?
You use virt-manager locally.
-
@jaredbusch said in Manage KVM through Cockpit:
@ccwtech said in Manage KVM through Cockpit:
@stacksofplates said in Manage KVM through Cockpit:
@ccwtech said in Manage KVM through Cockpit:
I think I have it figured out but don't know how to actually implement it. I'm running Fedora Server 28 Headless - so I have the ISO file for the drivers in /usr/share/virtio-win
I think I just need to mount the ISO for the VM but not sure how to do that.
Easiest for a first timer is virt-manager. Just click the IDE CDROM device and then click connect. You can pick your ISO from the browser.
Can you use virt-manager on a headless install?
You use virt-manager locally.
I get this error in terminal in cockpit as well as locally.
(virt-manager:5847): Gtk-WARNING **: 18:44:07.397: cannot open display:
-
@ccwtech said in Manage KVM through Cockpit:
a headless install?
Also, I fucking hate this phrase.
WTF is that supposed to mean? FFS, an install is an install. Ever single modern Linux distro runs just find without a KVM attached.
I installed Fedora Server 28 Minimal. and then disconnected the KVM and never hooked it back up. That makes it headless. But I did not choose some stupid "headless" version of the install.
-
@ccwtech said in Manage KVM through Cockpit:
@stacksofplates said in Manage KVM through Cockpit:
@ccwtech said in Manage KVM through Cockpit:
I think I have it figured out but don't know how to actually implement it. I'm running Fedora Server 28 Headless - so I have the ISO file for the drivers in /usr/share/virtio-win
I think I just need to mount the ISO for the VM but not sure how to do that.
Easiest for a first timer is virt-manager. Just click the IDE CDROM device and then click connect. You can pick your ISO from the browser.
Can you use virt-manager on a headless install?
Yeah. You can either X11 forward from the remote system or use a local install and SSH/HTTP/HTTPS for the QEMU connection.
Sadly virt-manager is the easiest for some things like attaching ISOs. The domain has to be running to attach an ISO however you can't hotplug an IDE device. So you're left with editing the XML for the domain. It's not hard just
virsh edit vmname
but still annoying.