search for: newdevice

Displaying 11 results from an estimated 11 matches for "newdevice".

Did you mean: netdevice
2010 Oct 12
1
[PATCH] Fix device name mapping for libata guests
...ys/VirtV2V/GuestOS/RedHat.pm @@ -1567,7 +1567,19 @@ sub remap_block_devices $letter++; } - map { $_ = $map{$_} } @$devices; + # N.B. Don't use map() here because we mustn't modify the original + # devices list + my @newdevices; + foreach my $device (@$devices) { + my $map = $map{$device}; + + unless (defined($map)) { + warn ("No mapping for device $device"); + next; + } + push(@newdevices, $map); +...
2013 Sep 25
0
[PATCH 1/1] Track hd->sd block device remaps
...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 going with SCSI # first until we have a more comprehensive solution. + my $idedev; my @newdevices; my $suffix = 'a'; foreach my $device (@devices) { - $device = 'sd'.$suffix++ if ($device =~ /(?:h|s)d[a-z]+/); + if ($device =~ /(?:h|s)d[a-z]+/) { + $idedev = $device; + $device = 'sd'.$suffix++; +...
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
...If we have disks hda, hdb, sda and sdb, > @@ -2247,10 +2557,15 @@ sub _remap_block_devices > # this is a weird and somewhat unlikely situation I'm going with SCSI > # first until we have a more comprehensive solution. > > + my $idedev; > my @newdevices; > my $suffix = 'a'; > foreach my $device (@devices) { > - $device = 'sd'.$suffix++ if ($device =~ /(?:h|s)d[a-z]+/); > + if ($device =~ /(?:h|s)d[a-z]+/) { > + $idedev = $device; > + $device =...
2006 Apr 24
0
[PATCH][XM-TEST][1/3] New Network Infrastructure for Xm-Test
...s creates a domain with a single ethernet device. It automatically grabs an IP and runs the necessary commands on the guest domain - ifconfig - for you. Or, you can create domains with XmTestDomain and then use the new device factory to add new devices to the domain: domain = XmTestDomain() domain.newDevice(XenNetDevice, "eth0") Xm-test networking must be configured when it''s made. There are new options for configure that set IP address range - it uses the zeroconf range as default, IP network address, and IP netmask. Xm-test refers to this range for grabbing and configuring IPs fo...
2013 Sep 25
5
Re: [PATCH 3/4] Add SUSE converter
...put IDE > + # drives first, but this hasn't worked for an OVA file. Given that > + # this is a weird and somewhat unlikely situation I'm going with SCSI > + # first until we have a more comprehensive solution. > + > + my $idedev; > + my @newdevices; > + my $suffix = 'a'; > + foreach my $device (@devices) { > + if ($device =~ /(?:h|s)d[a-z]+/) { > + $idedev = $device; > + $device = 'sd'.$suffix++; > + $idemap{$device} = $idedev if ($device...
2011 Mar 11
2
[PATCH 1/2] Allow reading more data than the reported size of a volume
If a volume is not an exact multiple of 512 bytes, qemu-img will report its size rounded down to a 512 byte boundary. However, when copying, the file is still read until EOF, which will return more data than was expected. This change prevents that causing a failure in itself. The situation is still not resolved, however, as there are still situations where this will cause a failure. For example,
2013 Oct 03
2
[PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...thought. This code originally put IDE + # drives first, but this hasn't worked for an OVA file. Given that + # this is a weird and somewhat unlikely situation I'm going with SCSI + # first until we have a more comprehensive solution. + + my $idedev; + my @newdevices; + 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); + } +...
2013 Sep 25
0
Re: [PATCH 3/4] Add SUSE converter
...ore acceptable way to clean it up? > Also, this should almost certainly die (with v2vdie) rather than be a > warning. Yes, good point. An error here is fatal, and the condition will be caught in shortly, but dying here would be better. > > + my $idedev; > > + my @newdevices; > > + my $suffix = 'a'; > > + foreach my $device (@devices) { > > + if ($device =~ /(?:h|s)d[a-z]+/) { > > + $idedev = $device; > > + $device = 'sd'.$suffix++; > > + $idemap{$...
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 Sep 24
0
[PATCH 3/4] Add SUSE converter
...thought. This code originally put IDE + # drives first, but this hasn't worked for an OVA file. Given that + # this is a weird and somewhat unlikely situation I'm going with SCSI + # first until we have a more comprehensive solution. + + my $idedev; + my @newdevices; + 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); + } +...