Random   •   Archives   •   RSS   •   About   •   Contact

Trouble mounting filesystem on KVM guest after reboot

Just found this out the hard way...

It looks like the attachment of /KVMROOT/guest-dev-app.img on guest-dev did not persist when the KVM host rebooted for patching.

As it appears the virsh attach-disk command works a lot like the mount command.

In order to have a disk attachment persist after a reboot, I think we still need to do a virsh edit.

the virsh attach-disk command is useful because it allows us to attach disk images to guests without restarting.

tldr;

virsh attach-disk is to mount as
virsh edit is to vim /etc/fstab



Want comments on your site?

Remarkbox — is a free SaaS comment service which embeds into your pages to keep the conversation in the same place as your content. It works everywhere, even static HTML sites like this one!

uncloseai.js example for static sites


Remarks: Trouble mounting filesystem on KVM guest after reboot

© Russell Ballestrini.