Displaying 10 results from an estimated 10 matches for "idemap".
2013 Sep 25
0
[PATCH 1/1] Track hd->sd block device remaps
...# Fedora has used libata since FC7, which is long out of support. We assume
# that all Fedora distributions in use use libata.
+ # Create a hash to track any hd->sd conversions, as any references to
+ # hd devices (in fstab, menu.lst, etc) will need to be converted later.
+ my %idemap;
+
if ($libata) {
# If there are any IDE devices, the guest will have named these sdX
# after any SCSI devices. i.e. If we have disks hda, hdb, sda and sdb,
@@ -2246,10 +2250,15 @@ sub _remap_block_devices
# this is a weird and somewhat unlikely situation I'm goi...
2013 Sep 25
1
[PATCH 0/1] virt-v2v: Track hd->sd block device remaps
During the conversion process, hd* block devices under Xen are mapped
to sd* devices for use under guestfs. These sd devices are later
remapped to vd* (or sd/hd) devices, for future use under kvm.
The current code fails to track the original hd* device names. This
causes subsequent remappings of the block devices (in such places as
/etc/fstab, and /boot/grub/menu.lst), to skip the hd* devices,
2013 Oct 03
0
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...a since FC7, which is long out of support. We assume
> # that all Fedora distributions in use use libata.
>
> + # Create a hash to track any hd->sd conversions, as any references to
> + # hd devices (in fstab, menu.lst, etc) will need to be converted later.
> + my %idemap;
> +
> if ($libata) {
> # If there are any IDE devices, the guest will have named these sdX
> # after any SCSI devices. i.e. If we have disks hda, hdb, sda and sdb,
> @@ -2247,10 +2557,15 @@ sub _remap_block_devices
> # this is a weird and somewhat...
2013 Sep 25
5
Re: [PATCH 3/4] Add SUSE converter
...9;8')
> + {
> + $libata = 0;
> + }
> + }
Could be combined with RHEL list.
> + # Create a hash to track any hd->sd conversions, as any references to
> + # hd devices (in fstab, menu.lst, etc) will need to be converted later.
> + my %idemap;
> +
> + if ($libata) {
> + # If there are any IDE devices, the guest will have named these sdX
> + # after any SCSI devices. i.e. If we have disks hda, hdb, sda and sdb,
> + # these will have been presented to the guest as sdc, sdd, sda and sdb
> +...
2013 Sep 24
5
[PATCH 0/4] Add SUSE guest converter to virt-v2v
This is a new conversion module to convert SUSE Linux and openSUSE guests.
The converter is based on the RedHat module, and should offer the same
functionality on both SUSE and RedHat hosts.
There are a few additional messages in this module, such as reporting of
packages when installing through zypper or the local virt-v2v repo. These
messages don't necessarily flow unless verbose switches
2013 Oct 03
2
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...as it will satisfy dependencies automatically.)
I'll think about it some more...
> > @@ -2235,6 +2541,10 @@ sub _remap_block_devices
...
> I've had a change to think about this change properly, and I'm pretty
> sure it's not required. The reason is that the only place %idemap is
> modified is in the section guarded:
>
> if ($libata) {
> ...
> }
>
> If the guest is using libata it will not have any references to
> /dev/hdX devices, as IDE devices are presented as SCSI devices. That's
> a NAK to this bit of the patch. Instead, you need to...
2013 Oct 04
0
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...The updates to the other installation methods should be trivial.
> > > @@ -2235,6 +2541,10 @@ sub _remap_block_devices
> ...
> > I've had a change to think about this change properly, and I'm pretty
> > sure it's not required. The reason is that the only place %idemap is
> > modified is in the section guarded:
> >
> > if ($libata) {
> > ...
> > }
> >
> > If the guest is using libata it will not have any references to
> > /dev/hdX devices, as IDE devices are presented as SCSI devices. That's
> > a NAK to...
2013 Sep 24
0
[PATCH 3/4] Add SUSE converter
...($major_version eq '7' ||
+ $major_version eq '8')
+ {
+ $libata = 0;
+ }
+ }
+
+ # Create a hash to track any hd->sd conversions, as any references to
+ # hd devices (in fstab, menu.lst, etc) will need to be converted later.
+ my %idemap;
+
+ if ($libata) {
+ # If there are any IDE devices, the guest will have named these sdX
+ # after any SCSI devices. i.e. If we have disks hda, hdb, sda and sdb,
+ # these will have been presented to the guest as sdc, sdd, sda and sdb
+ # respectively.
+ #
+...
2013 Oct 03
2
[PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...# Fedora has used libata since FC7, which is long out of support. We assume
+ # that all Fedora distributions in use use libata.
+
+ # Create a hash to track any hd->sd conversions, as any references to
+ # hd devices (in fstab, menu.lst, etc) will need to be converted later.
+ my %idemap;
+
+ if ($libata) {
+ # If there are any IDE devices, the guest will have named these sdX
+ # after any SCSI devices. i.e. If we have disks hda, hdb, sda and sdb,
+ # these will have been presented to the guest as sdc, sdd, sda and sdb
+ # respectively.
+ #
+...
2013 Sep 25
0
Re: [PATCH 3/4] Add SUSE converter
...ewdevices;
> > + my $suffix = 'a';
> > + foreach my $device (@devices) {
> > + if ($device =~ /(?:h|s)d[a-z]+/) {
> > + $idedev = $device;
> > + $device = 'sd'.$suffix++;
> > + $idemap{$device} = $idedev if ($device ne $idedev);
>
> RedHat.pm diff, and probably generally applicable. I'd definitely want
> to look at this as a separate patch.
I'll submit this as a general patch.
> > + # Update bare device references in fstab and grub's menu.lst...