Archive

Archive for the ‘Linux’ Category

Windows Azure IaaS: Ubuntu apt-get update is not running “404 Not Found”

January 30, 2013 1 comment

After provisioing a new VM in Windows Azure with Ubuntu Server 12.10 and while trying to install Apache on it running

apt-get install apache2 mysql-server php5 php5-mysql libapache2-mod-auth-mysql libapache2-mod-php5 php5-xsl php5-gd php-pear

I get an error, So I tried to get some packages installed via apt-get and still see that some files are misconfigured and not able to find packages in http://azure.archive.ubuntu.com

# apt-get install lamp-server

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
  lamp-server
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 28.2 kB of archives.
After this operation, 147 kB of additional disk space will be used.
Err http://azure.archive.ubuntu.com/ubuntu/ quantal/main lamp-server

403  Forbidden
Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/w/lamp-server 403  Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with –fix-missing?
root@Admin:~# apt-get update
Ign http://azure.archive.ubuntu.com quantal InRelease
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://azure.archive.ubuntu.com quantal-updates InRelease
Hit http://security.ubuntu.com quantal-security Release.gpg
Ign http://azure.archive.ubuntu.com quantal Release.gpg
Hit http://security.ubuntu.com quantal-security Release
Ign http://azure.archive.ubuntu.com quantal-updates Release.gpg
Ign http://azure.archive.ubuntu.com quantal Release
Hit http://security.ubuntu.com quantal-security/main Sources
Hit http://security.ubuntu.com quantal-security/universe Sources
Ign http://azure.archive.ubuntu.com quantal-updates Release
Ign http://azure.archive.ubuntu.com quantal/main Sources/DiffIndex
Hit http://security.ubuntu.com quantal-security/main amd64 Packages
Hit http://security.ubuntu.com quantal-security/universe amd64 Packages
Ign http://azure.archive.ubuntu.com quantal/universe Sources/DiffIndex
Ign http://azure.archive.ubuntu.com quantal/main amd64 Packages/DiffIndex
Hit http://security.ubuntu.com quantal-security/main Translation-en
Ign http://azure.archive.ubuntu.com quantal/universe amd64 Packages/DiffIndex
Hit http://security.ubuntu.com quantal-security/universe Translation-en
Hit http://azure.archive.ubuntu.com quantal/main Translation-en
Hit http://azure.archive.ubuntu.com quantal/universe Translation-en
Ign http://azure.archive.ubuntu.com quantal-updates/main Sources/DiffIndex
Ign http://azure.archive.ubuntu.com quantal-updates/universe Sources/DiffIndex
Ign http://azure.archive.ubuntu.com quantal-updates/main amd64 Packages/DiffIndex
Ign http://azure.archive.ubuntu.com quantal-updates/universe amd64 Packages/DiffIndex
Hit http://azure.archive.ubuntu.com quantal-updates/main Translation-en
Ign http://security.ubuntu.com quantal-security/main Translation-en_US
Ign http://security.ubuntu.com quantal-security/universe Translation-en_US
Hit http://azure.archive.ubuntu.com quantal-updates/universe Translation-en
Ign http://azure.archive.ubuntu.com quantal/main Translation-en_US
Ign http://azure.archive.ubuntu.com quantal/universe Translation-en_US
Ign http://azure.archive.ubuntu.com quantal-updates/main Translation-en_US
Ign http://azure.archive.ubuntu.com quantal-updates/universe Translation-en_US
Err http://azure.archive.ubuntu.com quantal/main Sources
  404  Not Found
Err http://azure.archive.ubuntu.com quantal/universe Sources
  404  Not Found
Err http://azure.archive.ubuntu.com quantal/main amd64 Packages
  404  Not Found
Err http://azure.archive.ubuntu.com quantal/universe amd64 Packages
  404  Not Found
Err http://azure.archive.ubuntu.com quantal-updates/main Sources
  404  Not Found
Err http://azure.archive.ubuntu.com quantal-updates/universe Sources
  404  Not Found
Err http://azure.archive.ubuntu.com quantal-updates/main amd64 Packages
  404  Not Found
Err http://azure.archive.ubuntu.com quantal-updates/universe amd64 Packages
  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal/main/source/Sources  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal/universe/source/Sources  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal/main/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal/universe/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal-updates/main/source/Sources  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/source/Sources  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal-updates/main/binary-amd64/Packages  404  Not Found
W: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/dists/quantal-updates/universe/binary-amd64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

 

Solution:

Edit edit /etc/apt/sources.list and add those Universe and Multiverse repositories

 

deb http://archive.ubuntu.com/ubuntu quantal universe multiverse
deb-src http://archive.ubuntu.com/ubuntu quantal universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ quantal universe
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal universe
deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates universe

deb http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal multiverse
deb http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ quantal-updates multiverse

deb http://security.ubuntu.com/ubuntu quantal-security universe
deb-src http://security.ubuntu.com/ubuntu quantal-security universe
deb http://security.ubuntu.com/ubuntu quantal-security multiverse
deb-src http://security.ubuntu.com/ubuntu quantal-security multiverse
Categories: Azure, Linux Tags:

RHEL 5.9 RELEASED WITH HYPER-V INTEGRATION!

January 9, 2013 Leave a comment

The Hyper-V momentum continues and Microsoft commitment to interoperability pays off again. Today, Red Hat announced the release of RHEL 5.9 which includes the Hyper-V Linux Integration Services built-in.

http://www.redhat.com/about/news/press-archive/2013/1/red-hat-announces-general-availability-of-red-hat-enterprise-linux-5-9

From the press release, Red Hat touts the included Hyper-V drivers:

New Virtualization Capabilities and Flexibility in Multi-vendor Environments. Red Hat Enterprise Linux 5.9 enhances the operating system’s usability in multi-vendor environments by introducing Microsoft Hyper-V drivers for improved performance. This enhances the usability of Red Hat Enterprise Linux 5 for guests in heterogeneous, multi-vendor virtualized environments and provides improved flexibility and interoperability for enterprises.

Ubuntu 12.04 Will Have Hyper-V Drivers By Default

Over the weekend, Mike Sterling (PM for the open source side of Hyper-V), tweeted that:

Since it has been a while, will make it worth it…Ubuntu 12.04 has Hyper-V drivers included by default for easy VM deployment.

Check the rest there

Categories: Hyper-V, Hyper-V R2, Linux Tags:

#Hyper-V: #Linux Integration Services no longer function after a kernel upgrade

August 31, 2010 1 comment

Consider the following scenario:

  • You are running Linux based virtual machines on Hyper-V with the 2.1 version of the Linux Integration Services installed.
  • You apply an updated kernel in the Linux based virtual machine.

After applying the kernel update, the Linux based guest operating system fails to boot with “Unable to mount root file system”.

This problem occurs because the Linux Integration Services must be recompiled after a kernel upgrade to function.

To prevent this issue, enable Dynamic Kernel Module Support (DKMS) before applying kernel updates.

Check MS KB http://support.microsoft.com/default.aspx?scid=kb;en-us;2387594&sd=rss&spid=14134

#Microsoft: ‘We love open source’

August 23, 2010 Leave a comment

A very interesting article in network world about Microsoft and Open Source.

Everyone in the Linux world remembers Microsoft CEO Steve Ballmer’s famous comment that Linux is a “cancer” that threatened Microsoft’s intellectual property.

Ballmer is still CEO of Microsoft, but that comment occurred in 2001, a lifetime ago in the technology market. While Microsoft hasn’t formally rescinded its declaration that Linux violates its patents, at least one Microsoft executive admits that the company’s earlier battle stance was a mistake. Microsoft wants the world to understand, whatever its issues with Linux, it no longer has any gripe toward open source.

Read it there

Hyper-V Linux Integration Services v2.1 Now ready

We are really excited to announce the availability of the Hyper-V Linux Integration Services for Linux Version 2.1. This release marks yet another milestone in providing a comprehensive virtualization platform to our customers. Customers who have a heterogeneous operating system environment desire their virtualization platform to provide support for all operating systems that they have in their datacenters. We have supported Linux as a guest operating system on our virtualization platform from the days of Virtual Server and continue to enhance our support in that regard.

The following features are included in the 2.1 release:

Driver support for synthetic devices: Linux Integration Services supports the synthetic network controller and the synthetic storage controller that were developed specifically for Hyper-V.

Fastpath Boot Support for Hyper-V: Boot devices take advantage of the block Virtualization Service Client (VSC) to provide enhanced performance.

Timesync: The clock inside the virtual machine will remain synchronized with the clock on the host.

Integrated Shutdown: Virtual machines running Linux can be gracefully shut down from either Hyper-V Manager or System Center Virtual Machine Manager.

Symmetric Multi-Processing (SMP) Support: Supported Linux distributions can use up to 4 virtual processors (VP) per virtual machine.

Heartbeat: Allows the host to detect whether the guest is running and responsive.

Pluggable Time Source: A pluggable clock source module is included to provide a more accurate time source to the guest.

This version of the integration services for Hyper-V supports Novell SUSE Linux Enterprise Server 10 SP3, SUSE Linux Enterprise Server 11, and Red Hat Enterprise Linux 5.2 / 5.3 / 5.4 / 5.5.

Customers can obtain the Linux IC’s via the Microsoft Download Center at this link: http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=eee39325-898b-4522-9b4c-f4b5b9b64551

Categories: Hyper-V, Hyper-V R2, Linux

Linux Integration Services v2.1 Release Candidate Now Available

Microsoft announces the availability of the RC release of the Linux Integration Services v2.1. This new version includes new functionality, including timesync, integrated shutdown, and SMP support.

When installed on a virtual machine that is running a supported Linux operating system, the Linux Integration Services for Hyper-V provide the following functionality:

  • Driver support for synthetic devices: The Linux Integration Services support the synthetic network controller and the synthetic storage controller that were developed specifically for Hyper-V.
  • Fastpath Boot Support for Hyper-V: Boot devices now take advantage of the block Virtualization Service Client (VSC) to provide enhanced performance.
  • NEW: Timesync: The clock inside the virtual machine will now remain synchronized with the clock on the host.
  • NEW: Integrated Shutdown: Virtual machines running Linux can now be shut down from either the Hyper-V Manager or the VMConnect application using the “Shut Down” command.
  • NEW: Symmetric Multi-Processing (SMP) Support: Supported Linux distributions can now properly use up to 4 virtual processors (VP) per virtual machine.
  • NEW FOR RC: Heartbeat: Allows the host to detect whether the guest is running and responsive.
  • NEW FOR RC: Pluggable Time Source: A pluggable clock source module is included to provide a more accurate time source to the guest.

This version of the integration services for Hyper-V can be downloaded from here, and supports Novell SUSE Linux Enterprise Server 10 SP3, SUSE Linux Enterprise Server 11, and Red Hat Enterprise Linux 5.2 / 5.3 / 5.4 / 5.5.

Ubuntu Server 10.4 in Hyper-V

Source

Last July, Microsoft announced the drivers for Linux source code is available in the Hyper-V virtualization environment. In practice, the 2.6.32 of the Linux kernel version now contains drivers for synthetic Hyper-V, virtual machine including the VMBus, storage, and network components. In detail, it’s hv_vmbus, hv_storvsc, hv_blkvsc and hv_netvsc modules: these modules are described in this article.

Out configurations “officially supported”, I tested the activation of these modules in new Ubuntu Server 10.4, provided recently with the 2.6.32 kernel. To do this I found this article which explains how to enable these modules, and which I inspire me thus far.

Enabling modules

Firstly it must ensure that the Hyper-V modules are loaded at startup. To do this, edit the file / etc / initramfs-tools / modules and add the following four lines:

hv_vmbus
hv_storvsc
hv_blkvsc
hv_netvsc

Then, update the initramfs image:

$ sudo update-initramfs – u

Finally, configure the network by changing the/etc/network/interfaces file to configure the network interface named seth0. Indeed, a synthetic NIC would be named seth n instead of eth n for “legacy” network adapter.

For example for a DHCP configuration, add the following to / etc / network / interfaces:

Auto seth0
iface seth0 inet dhcp

or, for a static IP address:

Auto seth0
iface seth0 inet static
address ip_address
netmask mask
Gateway adresse_passerelle

It remains only to restart, and check the proper loading of drivers using the command:

$ Lsmod | grep hv_

Test procedure

For my test I used Windows Server 2008 R2 Hyper-V, and 32-bit Ubuntu Server 10.4 (ubuntu-10. 04 – server – i386 .iso).

Because I set up the VM with a synthetic network adapter, it is not detected the installation. This is not serious; it will be when it has made steps outlined previously after installation.

Erreur : aucune carte réseau détectée

On this error message, choose <Continue>.

Once the virtual machine installed and started, the steps outlined above are fairly simple to implement:

initramfs

interfaces

After a reboot (sudo reboot), we have many assets on the network map seth0 synthetic, and other drivers loaded:

Réseau et drivers Hyper-V

That is what servers run Linux under Hyper-V with decent performance. Have to wait for integration into the Linux kernel the next features (multi-processors, clock synchronization and stop integrated), these features are currently available in the beta integration services 2.1, SUSE Linux Enterprise Server Red Hat Enterprise Linux.

Beta Linux Integration Services Available.. Symmetric Multi-Processing (SMP) Support

March 31, 2010 2 comments

Microsoft announces the availability of the beta release of the Linux Integration Services v2.1. This new version includes new functionality, including timesync, integrated shutdown, and SMP support.

When installed on a virtual machine that is running a supported Linux operating system, the Linux Integration Services for Hyper-V provide the following functionality:

  • Driver support for synthetic devices: The Linux Integration Services support the synthetic network controller and the synthetic storage controller that were developed specifically for Hyper-V.
  • Fastpath Boot Support for Hyper-V: Boot devices now take advantage of the block Virtualization Service Client (VSC) to provide enhanced performance.
  • NEW: Timesync: The clock inside the virtual machine will now remain synchronized with the clock on the host.
  • NEW: Integrated Shutdown: Virtual machines running Linux can now be shut down from either the Hyper-V Manager or the VMConnect application using the “Shut Down” command.
  • NEW: Symmetric Multi-Processing (SMP) Support: Supported Linux distributions can now properly use up to 4 virtual processors (VP) per virtual machine.

It is officially supported for the following versions of Linux:

  • SUSE Linux Enterprise Server 10 SP3 x86 and x64
    • SUSE Linux Enterprise Server 10 SP2 will no longer be supported by Novell as of April 12, 2010. Novell recommends that users migrate to SUSE Linux Enterprise Server 10 SP3.
  • SUSE Linux Enterprise Server 11 x86 and x64
  • Red Hat Enterprise Linux 5.2, 5.3, and 5.4 x86 and x64

This release is currently available on Connect (http://connect.microsoft.com) under the “Linux Integration Services for Microsoft Hyper-V” connection (which you can go and sign up for right now).

This is a beta release. To use the previously released version, download them from this link.

Linux Integration Components for Windows Server 2008 Hyper-V R2

February 5, 2010 1 comment

When installed in a supported Linux virtual machine running on Hyper-V, the Linux Integration Components provide.

Driver support for synthetic devices: The Linux integration components include support for both the synthetic network controller and synthetic storage controller that have been developed specifically for Hyper-V. These components take advantage of the new high-speed bus, VMBus, which was developed for Hyper-V.

Fastpath Boot Support: Boot devices now take advantage of the storage VSC to provide enhanced performance.

Supported Host Operating Systems
This version of the Linux Integration Components supports the following versions of Hyper-V:
– Windows Server® 2008 Standard, Windows Server® 2008 Enterprise, and Windows Server® 2008 Datacenter (64-bit versions only)
– Microsoft® Hyper-V Server 2008
– Windows Server 2008 R2 Hyper-V RTM (Build 7600) Standard, Enterprise, and Datacenter
-Microsoft Hyper-V Server 2008 R2 RTM (Build 7600)

Supported Guest Operating Systems
This version of the Linux Integration Components supports the following guest operating systems and virtual CPU (vCPU) configurations:
-SUSE Linux Enterprise Server 10 SP2 x86 and x64 (1 vCPU)
-SUSE Linux Enterprise Server 11 x86 and x64 (1 vCPU)
-Red Hat Enterprise Linux 5.2, 5.3, and 5.4 x86 and x64 (1 vCPU)

To download Linux Integration component version 2, please click this link:-
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=c299d675-bb9f-41cf-b5eb-74d0595ccc5c#filelist

Follow

Get every new post delivered to your Inbox.

Join 1,018 other followers

%d bloggers like this: