Swap creation doesn't work for KVM

After adding a swap device to a KVM instance, I had to manually create the fstab entries in order to mount it.

Also, there is no protection against naming a device the same as some other already added resource (the default of /dev/sdb conflicts with the default CD device when performing an install from CD).

Status: 
Closed (fixed)

Comments

Same bug caused both of these - just checked in a fix.

Found another bug that causes new swap disks to not be added to /etc/fstab , when added via the UI.

Work-around is to add to /etc/fstab manually, or create with the shell API command :

vm2 create-disk --host ns.whatever --virt /dev/vdb --auto-real --mount swap --format swap --size 1024

Automatically closed -- issue fixed for 2 weeks with no activity.