New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After new partitions created on second hard drive, Qubes VM Manager allows attaching entire drive to VM #2260

Open
greenrd opened this Issue Aug 21, 2016 · 3 comments

Comments

3 participants
@greenrd

greenrd commented Aug 21, 2016

Qubes OS version (e.g., R3.1):

R3.1


Expected behavior:

A new partition (at least, if it is not already mounted on dom0) should be offered as an option for attaching to VMs by Qubes VM Manager

Actual behavior:

Entire new disk offered as an option for attaching to VMs by Qubes VM Manager. New partitions not offered as options for attaching - even after restarting Qubes VM Manager.

Steps to reproduce the behavior:

  1. Obtain new hard drive
  2. Install hard drive into computer alongside existing drives
  3. Boot
  4. sudo qubes-dom0-update kde-partionmanager
  5. partitionmanager
  6. Create GPT partition table on new hard drive
  7. Create 2 partitions on new hard drive
  8. Apply changes
  9. Exit
  10. Add first partition to /etc/fstab
  11. Mount first partition in dom0
  12. Start a VM
  13. Attempt to attach second partition to the VM.

General notes:

After a dom0 reboot, the expected behaviour is seen. I'm guessing the new drive's partition table wasn't rescanned until dom0 was rebooted.

@andrewdavidwong

This comment has been minimized.

Show comment
Hide comment
@andrewdavidwong

andrewdavidwong Aug 22, 2016

Member

After a dom0 reboot, the expected behaviour is seen. I'm guessing the new drive's partition table wasn't rescanned until dom0 was rebooted.

Do I understand correctly that the solution to this issue is simply rebooting dom0? If so, what change are you suggesting?

Member

andrewdavidwong commented Aug 22, 2016

After a dom0 reboot, the expected behaviour is seen. I'm guessing the new drive's partition table wasn't rescanned until dom0 was rebooted.

Do I understand correctly that the solution to this issue is simply rebooting dom0? If so, what change are you suggesting?

@cyrinux

This comment has been minimized.

Show comment
Hide comment
@cyrinux

cyrinux Aug 22, 2016

Hi,
Maybe simply run 'partprobe' from dom0?

cyrinux commented Aug 22, 2016

Hi,
Maybe simply run 'partprobe' from dom0?

@greenrd

This comment has been minimized.

Show comment
Hide comment
@greenrd

greenrd Aug 28, 2016

I'm not sure what is causing this. Clearly the dom0 Linux kernel has seen the new partitions, because it can mount them, so I'm not sure why Qubes VM Manager doesn't notice them.

greenrd commented Aug 28, 2016

I'm not sure what is causing this. Clearly the dom0 Linux kernel has seen the new partitions, because it can mount them, so I'm not sure why Qubes VM Manager doesn't notice them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment