mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 07:38:07 +00:00
Also test is cdrom is on shared storage
Else we can't migrate.
This commit is contained in:
parent
7f0b5bebc6
commit
9b20b0601a
9
qmigrate
9
qmigrate
@ -305,13 +305,16 @@ sub sync_disks {
|
||||
PVE::QemuServer::foreach_drive($conf, sub {
|
||||
my ($ds, $drive) = @_;
|
||||
|
||||
return if PVE::QemuServer::drive_is_cdrom($drive);
|
||||
|
||||
my $volid = $drive->{file};
|
||||
|
||||
return if !$volid;
|
||||
|
||||
die "cant migrate local file/device '$volid'\n" if $volid =~ m|^/|;
|
||||
|
||||
if (PVE::QemuServer::drive_is_cdrom($drive)) {
|
||||
die "cant migrate local cdrom drive\n" if $volid eq 'cdrom';
|
||||
return if $volid eq 'none';
|
||||
}
|
||||
|
||||
my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
|
||||
|
||||
my $scfg = PVE::Storage::storage_config($storecfg, $sid);
|
||||
|
Loading…
Reference in New Issue
Block a user